﻿using System.Text.RegularExpressions;
using dpa.Library.Models;
using NPOI.SS.Formula.Atp;

namespace dpa.Library.Helper;

public static class RegexHelper
{
    public static bool IsOurFile(string fileName) => fileName switch
    {
        _ when FlightsReleased.RegexText().IsMatch(fileName) => true,
        _ when AirportInitialFlight.RegexText().IsMatch(fileName) => true,
        _ when AirportInitialAllFlight.RegexText().IsMatch(fileName) => true,
        _ when AirportBridgingRate2.RegexText().IsMatch(fileName) => true,
        _ when AirlineFlights.RegexText().IsMatch(fileName) => true,
        _ when AirlineTakesOff.RegexText().IsMatch(fileName) => true,
        _ when AirlineDelay.RegexText().IsMatch(fileName) => true,
        _ when AirportTaxiingExtraSlidingOutIn.RegexText().IsMatch(fileName) => true,
        _ => false
    };

}